package com.visionet.school.app.web.service.wechat;

import com.visionet.school.app.web.entity.wechat.MemberLogin;
import com.visionet.school.app.web.repository.wechat.MemberLoginRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by hxpeng on 2017/3/23.
 */

@Service
public class MemberLoginService {

    @Resource
    private MemberLoginRepository memberLoginRepository;


    public MemberLogin findOneByOpenId(String openId){return memberLoginRepository.findoOneByOpenId(openId);}

    public MemberLogin save(MemberLogin memberLogin){return memberLoginRepository.save(memberLogin);}

}
